package org.product.server;

import com.alibaba.dubbo.config.annotation.Service;
import org.example.common.ProductService;
import org.example.model.Product;

import java.math.BigDecimal;

@Service
public class ProductServiceImpl implements ProductService {

    public Product getProductById(Long id) {
        Product product = new Product();
        product.setId(id);
        product.setProductAmount(new BigDecimal("9215.28"));
        product.setProductName("iphone 11 pro max 256GB");
        product.setProductType("手机数码");
        return product;
    }
}
